.class Les/xy$a;
.super Ljava/lang/Object;
.source "EditMenuItemProvider.java"

# interfaces
.implements Landroid/view/MenuItem$OnMenuItemClickListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Les/xy;->d()V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic a:Les/xy;


# direct methods
.method constructor <init>(Les/xy;)V
    .locals 0

    .line 1
    iput-object p1, p0, Les/xy$a;->a:Les/xy;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onMenuItemClick(Landroid/view/MenuItem;)Z
    .locals 5

    .line 1
    iget-object p1, p0, Les/xy$a;->a:Les/xy;

    invoke-static {p1}, Les/xy;->a(Les/xy;)Lcom/estrongs/android/pop/view/FileExplorerActivity;

    move-result-object p1

    invoke-virtual {p1}, Lcom/estrongs/android/pop/view/FileExplorerActivity;->b0()Ljava/lang/String;

    move-result-object p1

    invoke-static {p1}, Lcom/estrongs/android/util/h0;->A1(Ljava/lang/String;)Z

    move-result p1

    .line 2
    iget-object v0, p0, Les/xy$a;->a:Les/xy;

    invoke-static {v0}, Les/xy;->a(Les/xy;)Lcom/estrongs/android/pop/view/FileExplorerActivity;

    move-result-object v0

    invoke-virtual {v0}, Lcom/estrongs/android/pop/view/FileExplorerActivity;->b0()Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Lcom/estrongs/android/util/h0;->r1(Ljava/lang/String;)Z

    move-result v0

    if-nez p1, :cond_0

    if-eqz v0, :cond_1

    .line 3
    :cond_0
    invoke-static {}, Lcom/estrongs/android/statistics/b;->b()Lcom/estrongs/android/statistics/b;

    move-result-object p1

    const-string v0, "log_fast_delete"

    const-string v1, "del"

    invoke-virtual {p1, v0, v1}, Lcom/estrongs/android/statistics/b;->c(Ljava/lang/String;Ljava/lang/String;)V

    .line 4
    :cond_1
    iget-object p1, p0, Les/xy$a;->a:Les/xy;

    invoke-static {p1}, Les/xy;->b(Les/xy;)Ljava/util/List;

    move-result-object p1

    .line 5
    invoke-interface {p1}, Ljava/util/List;->size()I

    move-result v0

    const/4 v1, 0x1

    if-nez v0, :cond_2

    .line 6
    iget-object p1, p0, Les/xy$a;->a:Les/xy;

    invoke-static {p1}, Les/xy;->a(Les/xy;)Lcom/estrongs/android/pop/view/FileExplorerActivity;

    move-result-object p1

    invoke-virtual {p1}, Landroid/app/Activity;->getBaseContext()Landroid/content/Context;

    move-result-object p1

    const v0, 0x7f1104a3

    const/4 v2, 0x0

    invoke-static {p1, v0, v2}, Lcom/estrongs/android/ui/view/d;->a(Landroid/content/Context;II)V

    return v1

    .line 7
    :cond_2
    :try_start_0
    iget-object v0, p0, Les/xy$a;->a:Les/xy;

    invoke-static {v0}, Les/xy;->a(Les/xy;)Lcom/estrongs/android/pop/view/FileExplorerActivity;

    move-result-object v0

    invoke-virtual {v0}, Lcom/estrongs/android/pop/view/FileExplorerActivity;->f0()Lcom/estrongs/android/statistics/b;

    move-result-object v0

    const-string v2, "Longpress_delete"

    .line 8
    invoke-virtual {v0, v2}, Lcom/estrongs/android/statistics/b;->b(Ljava/lang/String;)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    :catch_0
    move-exception v0

    .line 9
    invoke-virtual {v0}, Ljava/lang/Exception;->printStackTrace()V

    .line 10
    :goto_0
    iget-object v0, p0, Les/xy$a;->a:Les/xy;

    invoke-static {v0}, Les/xy;->c(Les/xy;)Ljava/lang/String;

    move-result-object v0

    .line 11
    invoke-static {v0}, Lcom/estrongs/android/util/h0;->X0(Ljava/lang/String;)Z

    move-result v2

    if-eqz v2, :cond_3

    .line 12
    iget-object v0, p0, Les/xy$a;->a:Les/xy;

    invoke-static {v0}, Les/xy;->a(Les/xy;)Lcom/estrongs/android/pop/view/FileExplorerActivity;

    move-result-object v0

    invoke-virtual {v0}, Lcom/estrongs/android/pop/view/FileExplorerActivity;->Z()Lcom/estrongs/android/view/FileGridViewWrapper;

    move-result-object v0

    .line 13
    instance-of v2, v0, Lcom/estrongs/android/pop/app/diskusage/c;

    if-eqz v2, :cond_6

    .line 14
    check-cast v0, Lcom/estrongs/android/pop/app/diskusage/c;

    invoke-virtual {v0, p1}, Lcom/estrongs/android/pop/app/diskusage/c;->g(Ljava/util/List;)V

    .line 15
    :try_start_1
    iget-object p1, p0, Les/xy$a;->a:Les/xy;

    invoke-static {p1}, Les/xy;->a(Les/xy;)Lcom/estrongs/android/pop/view/FileExplorerActivity;

    move-result-object p1

    invoke-virtual {p1}, Lcom/estrongs/android/pop/view/FileExplorerActivity;->f0()Lcom/estrongs/android/statistics/b;

    move-result-object p1

    if-eqz p1, :cond_6

    const-string v0, "Delete_In_Diskusage_UV"

    .line 16
    invoke-virtual {p1, v0}, Lcom/estrongs/android/statistics/b;->a(Ljava/lang/String;)V
    :try_end_1
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_1

    goto/16 :goto_1

    :catch_1
    move-exception p1

    .line 17
    invoke-virtual {p1}, Ljava/lang/Exception;->printStackTrace()V

    goto :goto_1

    .line 18
    :cond_3
    invoke-static {v0}, Lcom/estrongs/android/util/h0;->h1(Ljava/lang/String;)Z

    move-result v2

    const v3, 0x7f11029e

    const v4, 0x7f11065f

    if-eqz v2, :cond_4

    .line 19
    invoke-static {}, Lcom/estrongs/android/pop/l;->L1()Lcom/estrongs/android/pop/l;

    move-result-object p1

    invoke-virtual {p1, v1}, Lcom/estrongs/android/pop/l;->B(Z)V

    .line 20
    new-instance p1, Lcom/estrongs/android/ui/dialog/q$n;

    iget-object v0, p0, Les/xy$a;->a:Les/xy;

    invoke-static {v0}, Les/xy;->a(Les/xy;)Lcom/estrongs/android/pop/view/FileExplorerActivity;

    move-result-object v0

    invoke-direct {p1, v0}, Lcom/estrongs/android/ui/dialog/q$n;-><init>(Landroid/content/Context;)V

    .line 21
    invoke-virtual {p1, v4}, Lcom/estrongs/android/ui/dialog/q$n;->b(I)Lcom/estrongs/android/ui/dialog/q$n;

    const v0, 0x7f110a95

    .line 22
    invoke-virtual {p1, v0}, Lcom/estrongs/android/ui/dialog/q$n;->a(I)Lcom/estrongs/android/ui/dialog/q$n;

    new-instance v0, Les/xy$a$a;

    invoke-direct {v0, p0}, Les/xy$a$a;-><init>(Les/xy$a;)V

    .line 23
    invoke-virtual {p1, v3, v0}, Lcom/estrongs/android/ui/dialog/q$n;->f(ILandroid/content/DialogInterface$OnClickListener;)Lcom/estrongs/android/ui/dialog/q$n;

    .line 24
    invoke-virtual {p1}, Lcom/estrongs/android/ui/dialog/q$n;->a()Lcom/estrongs/android/ui/dialog/q;

    move-result-object p1

    .line 25
    invoke-virtual {p1}, Lcom/estrongs/android/ui/dialog/q;->show()V

    return v1

    .line 26
    :cond_4
    invoke-static {v0}, Lcom/estrongs/android/util/h0;->t1(Ljava/lang/String;)Z

    move-result v2

    if-eqz v2, :cond_5

    .line 27
    invoke-static {}, Lcom/estrongs/android/pop/l;->L1()Lcom/estrongs/android/pop/l;

    move-result-object p1

    invoke-virtual {p1, v1}, Lcom/estrongs/android/pop/l;->C(Z)V

    .line 28
    new-instance p1, Lcom/estrongs/android/ui/dialog/q$n;

    iget-object v0, p0, Les/xy$a;->a:Les/xy;

    invoke-static {v0}, Les/xy;->a(Les/xy;)Lcom/estrongs/android/pop/view/FileExplorerActivity;

    move-result-object v0

    invoke-direct {p1, v0}, Lcom/estrongs/android/ui/dialog/q$n;-><init>(Landroid/content/Context;)V

    .line 29
    invoke-virtual {p1, v4}, Lcom/estrongs/android/ui/dialog/q$n;->b(I)Lcom/estrongs/android/ui/dialog/q$n;

    const v0, 0x7f110a96

    .line 30
    invoke-virtual {p1, v0}, Lcom/estrongs/android/ui/dialog/q$n;->a(I)Lcom/estrongs/android/ui/dialog/q$n;

    new-instance v0, Les/xy$a$b;

    invoke-direct {v0, p0}, Les/xy$a$b;-><init>(Les/xy$a;)V

    .line 31
    invoke-virtual {p1, v3, v0}, Lcom/estrongs/android/ui/dialog/q$n;->f(ILandroid/content/DialogInterface$OnClickListener;)Lcom/estrongs/android/ui/dialog/q$n;

    .line 32
    invoke-virtual {p1}, Lcom/estrongs/android/ui/dialog/q$n;->a()Lcom/estrongs/android/ui/dialog/q;

    move-result-object p1

    .line 33
    invoke-virtual {p1}, Lcom/estrongs/android/ui/dialog/q;->show()V

    return v1

    .line 34
    :cond_5
    iget-object v2, p0, Les/xy$a;->a:Les/xy;

    invoke-static {v2}, Les/xy;->a(Les/xy;)Lcom/estrongs/android/pop/view/FileExplorerActivity;

    move-result-object v2

    new-instance v3, Les/xy$a$c;

    invoke-direct {v3, p0, p1, v0}, Les/xy$a$c;-><init>(Les/xy$a;Ljava/util/List;Ljava/lang/String;)V

    const-string p1, "s1"

    invoke-static {p1, v2, v0, v3}, Lcom/estrongs/fs/impl/local/a;->a(Ljava/lang/String;Landroid/content/Context;Ljava/lang/String;Ljava/lang/Runnable;)V

    :cond_6
    :goto_1
    return v1
.end method
